package com.example.entity;

import javax.xml.crypto.Data;
import java.util.Date;

public class ScoreDetail {
    private int scoredetailid;
    private int uid;
    private int gid;
    private int oid;
    private String changetype;//变化类型
    private Double scorechange;//积分变化值
    private Date updatetime;//更新时间
    private User user;
    private Goods goods;
    private Orders orders;
    private double  beforescore;
    private  double afterscore;

    @Override
    public String toString() {
        return "ScoreDetail{" +
                "scoredetailid=" + scoredetailid +
                ", uid=" + uid +
                ", gid=" + gid +
                ", oid=" + oid +
                ", changetype='" + changetype + '\'' +
                ", scorechange=" + scorechange +
                ", updatetime=" + updatetime +
                ", user=" + user +
                ", goods=" + goods +
                ", orders=" + orders +
                ", beforescore=" + beforescore +
                ", afterscore=" + afterscore +
                '}';
    }

    public double getBeforescore() {
        return beforescore;
    }

    public void setBeforescore(double beforescore) {
        this.beforescore = beforescore;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public int getOid() {
        return oid;
    }

    public void setOid(int oid) {
        this.oid = oid;
    }



    public double getAfterscore() {
        return afterscore;
    }

    public void setAfterscore(double afterscore) {
        this.afterscore = afterscore;
    }

    public int getScoredetailid() {
        return scoredetailid;
    }

    public void setScoredetailid(int scoredetailid) {
        this.scoredetailid = scoredetailid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public String getChangetype() {
        return changetype;
    }

    public void setChangetype(String changetype) {
        this.changetype = changetype;
    }

    public Double getScorechange() {
        return scorechange;
    }

    public void setScorechange(Double scorechange) {
        this.scorechange = scorechange;
    }



    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public Orders getOrders() {
        return orders;
    }

    public void setOrders(Orders orders) {
        this.orders = orders;
    }
}
